<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.kylin.common.util.MemObjFactory"/>
<jsp:directive.page import="java.util.Enumeration"/>
<jsp:directive.page import="com.kylin.module.ad.orm.ADType"/>
<%@ include file="/common/include/taglibs.jsp"%>
<html><body>
<hr>----------
固定1<mytag:AD type="testad" index="2"  height="100" width="500" />
<br>
<%
   String adlanguage = null;
   			java.util.Locale adloc = (java.util.Locale) pageContext.getAttribute(org.apache.struts.Globals.LOCALE_KEY, pageContext.SESSION_SCOPE);
			if(adloc != null)
				adlanguage = adloc.toString();
			else
			    adlanguage = "zh_CN";
   
%>
<ul>
       <li>1<mytag:AD type="homepage_bottom" index="1" /></li>
       <li>2<mytag:AD type="homepage_bottom" index="2" /></li>
       <li>3<mytag:AD type="homepage_bottom" index="3" /></li>
       <li>4<mytag:AD type="homepage_bottom" index="4" /></li>
       <li><mytag:AD type="homepage_bottom" index="5" /></li>
       <li><mytag:AD type="homepage_bottom" index="6" /></li>
       <li><mytag:AD type="homepage_bottom" index="7" /></li>
       <li><mytag:AD type="homepage_bottom" index="8" /></li>
       <li><mytag:AD type="homepage_bottom" index="9" /></li>
       <li><mytag:AD type="homepage_bottom" index="1" language="<%=adlanguage%>" /></li>
     </ul>
</body>
<html> 

<%
      Enumeration en = MemObjFactory.ADs.keys() ;
      while(en.hasMoreElements()){
      		Object key = en.nextElement();
          ADType t = (ADType) MemObjFactory.ADs.get(key);
          out.println("<br>ADS["+key+"]="+ t.getAdList().size());
      }
%>